(function(factory) {
	if (typeof define === "function" && define.amd) {
		// AMD. Register as an anonymous module.
		require.config({
			paths : {
				'Tile' : 'tile',
				'HteOS' : 'src'
			},
			urlArgs:'_dc='+(new Date()).getTime()
		});
		define(['HteOS/HteOS',"HteOS/Console","HteOS/UA",
				"HteOS/EventManager","HteOS/User",
				"HteOS/Common",'HteOS/Template',
				"HteOS/Bootstrap"],factory);
	} else {
		// Browser globals
		factory();
	}
}(function() {
	$(function(){
		HteOS.EventManager.trigger("hteos.ready");
		$(document).trigger("hteos.ready");
		HteOS.Bootstrap.start();
	});
	return HteOS;
}));
